const Koa = require('koa');
const route = require('koa-route');

const app = new Koa();

const e500_handler = ctx => ctx.throw(500);

const e404_handler = ctx =>{
    ctx.response.status = 404;
    ctx.response.body = 'Page Not Found';
};

app.use(route.get('/e500',e500_handler));
app.use(route.get('/e404',e404_handler));

app.listen(3006);
